//
//  GDWeatherModel.m
//  GraduationDesign
//
//  Created by JiaKang.Zhong on 16/1/4.
//  Copyright © 2016年 JiaKang.Zhong. All rights reserved.
//

#import "GDNowWeatherModel.h"


@implementation GDNowWeatherModel

-(instancetype)initWithWeatherDictionary:(NSDictionary *)dic{
    if (self = [super init]) {
        
        _humidity = dic[@"humidity"];//湿度
        _wind_direction = dic[@"wind_direction"];//风向
        _temp = dic[@"temp"];//温度
        _wind_strength = dic[@"wind_strength"];//风力
        _time = dic[@"time"];//更新时间
        _weather = dic[@"weather"];//天气状况
        _weatherID = [GDWeatherID weatherWithDic:dic[@"weather_id"]];
        _dressing_index = dic[@"dressing_index"]; // 舒适程度
        _dressing_advice = dic[@"dressing_advice"]; // 穿衣指数
    }
    return self;
}

+(instancetype)currWeatherWithDictionary:(NSDictionary *)dic{
    
    return [[self alloc] initWithWeatherDictionary:dic];
}
@end
